import Request from '@/utils/request/request-util';

/**
 * 档案分类-API接口
 *
 * @author caoxf
 * @date 2023/11/20 23:19
 */
export class ItemclassApi {

  /**
   * 获取分页列表
   *
   * @author caoxf
   * @date 2023/11/20 23:19
   */
  static findPage(params) {
    return Request.getAndLoadData('/itemclass/page', params);
  }

  /**
   * 添加档案分类
   *
   * @author caoxf
   * @date 2023/11/20 23:19
   */
  static add(params) {
    return Request.post('/itemclass/add', params);
  }

  /**
   * 编辑档案分类
   *
   * @author caoxf
   * @date 2023/11/20 23:19
   */
  static edit(params) {
    return Request.post('/itemclass/edit', params);
  }

  /**
   * 删除单个档案分类
   *
   * @author caoxf
   * @date 2023/11/20 23:19
   */
  static delete(params) {
    return Request.post('/itemclass/delete', params);
  }

  /**
   * 删除批量档案分类
   *
   * @author caoxf
   * @date 2023/11/20 23:19
   */
  static batchDelete(params) {
    return Request.post('/itemclass/batchDelete', params);
  }

  /**
   * 档案分类详情
   *
   * @author caoxf
   * @date 2023/11/20 23:19
   */
  static detail(params) {
    return Request.getAndLoadData('/itemclass/detail', params);
  }

}